package cn.cai.pethome.logininfo.mapper;

import cn.cai.pethome.logininfo.domain.Logininfo;
import cn.cai.pethome.base.mapper.BaseMapper;
import cn.cai.pethome.system.domain.Menu;
import cn.cai.pethome.user.dto.UserDto;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaocai
 * @since 2022-08-27
 */
@Repository
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    /**
     * 根据账号查询logininfo表的数据登录
     * @param account
     * @return
     */
    Logininfo findByAccount(String account);

    Logininfo findByPhone(String phone);

    //查询t_logininfo账号和密码是否存在
    Logininfo findByaccountAndpassword(UserDto userDto);

    /**
     * 菜单树
     * @return
     */
    /*  List<Menu> getTree();*/


}
